<script setup>
import { useStore } from '@/store'
import { onMounted, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
const route=useRoute()
const router=useRouter()
const store=useStore()


</script>

<template>
    <div>
        <div class="flex">
            <div>当前链接状态:</div>
            <div>{{ store.linkState==true?'已连接':'未连接' }}</div>
        </div>
        <div v-if="store.linkState==true">
            <el-button>断开连接</el-button>
        </div>
    </div>
</template>